import App from './App'

// #ifndef VUE3
import Vue from 'vue'
///////////////////////挂载全局开始///////////////////////
import {
	request,
	request1,
	loginTest,
	preImage,
	uploadFilePromise,
	thirteenBitTimestamp
} from '@/utils/request.js'
import myApi from '@/utils/app.js';
Vue.prototype.$uploadFilePromise = uploadFilePromise
Vue.prototype.myApi = myApi
Vue.prototype.request = request1 //request请求
Vue.prototype.$thirteenBitTimestamp = thirteenBitTimestamp //request请求
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
import cuCustom from '@/uni_modules/colorui/components/cu-custom.vue'
Vue.component('cu-custom', cuCustom)
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif